package br.com.tcc.systemdx.domain;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.validator.Length;
import org.hibernate.validator.NotEmpty;

@Entity
@Table(name="ocorrenciadoenca")
public class OcorrenciaDoenca extends BaseEntity {
 	
	/**
	 * 
	 */
	private static final long serialVersionUID = 7090715806726662272L;
	
	@NotEmpty
	@Length(max = 6)
	private String CID;
	
	@NotEmpty
	@Length(max = 20)
	private String cep;
	
	@Temporal(TemporalType.TIMESTAMP)
	private Date data_ocorrencia;

	public String getCID() {
		return CID;
	}

	public void setCID(String cID) {
		CID = cID;
	}

	public String getCep() {
		return cep;
	}

	public void setCep(String cep) {
		this.cep = cep;
	}

	public Date getData_ocorrencia() {
		return data_ocorrencia;
	}

	public void setData_ocorrencia(Date data_ocorrencia) {
		this.data_ocorrencia = data_ocorrencia;
	}
	
	
	
}
